< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03101100.xhp

(section: defbool) (bookmark: bm_id3145759)
DefBool statement

DefBool ステートメント

DefBool Statement [Runtime]
DefBool ステートメント [実行時](hd_id3145759.1)

If no type-declaration character or keyword is specified, the DefBool statement sets the default data type for variables, according to a letter range.
DefBool ステートメントでは、型宣言子やキーワードが指定されない場合にデフォルトの変数型を適用する、変数名の文字範囲を指定します。(par_id3153089.2)

(/section: defbool)

Syntax:
構文:(hd_id3149495.3)

Defxxx Characterrange1[, Characterrange2[,...]]
Defxxx Characterrange1[, Characterrange2[,...]](par_id3150682.4)

Parameters:
パラメータ:(hd_id3159201.5)

Characterrange: Letters that specify the range of variables that you want to set the default data type for.
Characterrange: デフォルトのデータ型の設定対象である変数の範囲を指定する文字。(par_id3147226.6)

xxx: Keyword that defines the default variable type:
xxx: デフォルトの変数型を定義するキーワード。(par_id3149178.7)

Keyword: Default variable type
キーワード:デフォルトの変数型(par_id3150669.8)

DefBool: Boolean
DefBool: ブール型(par_id3149233.9)

Example:
例:(hd_id3149762.10)

REM Prefix definition for variable types:
REM 各変数型に定義されているプレフィックス(par_id3156152.12)

DefBool b
DefBool b(par_id3153627.13)

DefDate t
DefDate t(par_id3145610.14)

DefDbL d
DefDbL d(par_id3154760.15)

DefInt i
DefInt i(par_id3148552.16)

DefLng l
DefLng l(par_id3152812.17)

DefObj o
DefObj o(par_id3153524.18)

DefVar v
DefVar v(par_id3150541.19)

Sub ExampleDefBool
Sub ExampleDefBool(par_id3153193.21)

bOK=TRUE REM bOK is an implicit Boolean variable
bOK=TRUE REM ここで bOKはブール型変数として解釈されます(par_id3151381.22)

end sub
end sub(par_id3145421.23)


< Prev / Next >